package com.itheima.mobile.mapper;

import com.itheima.mobile.pojo.OrderSetting;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

public interface OrderSettingDao {

    @Select("select * from t_ordersetting where orderDate = #{date}")
    OrderSetting getOrderSettingByDate(String date);

    @Update("update t_ordersetting set reservations = #{reservations} where id = #{id}")
    int updateById(OrderSetting orderSetting);
}
